/*  ISCII  INDEX
   161-163: 0-2 :{z,M,H}
   164-178: 3-17: Vowels
   179-216:18-55: Consonants
     217  :  56 : Invisible(Consonant)
   218-231:57-70: Matraas
     232  :  71 : Halant_marker
     233  :  72 : Nukta
     234  :  73 : Khadii_paii
   235-238:74-77: Reserved_for_future_extensions
     239  :  78 : Attribute_code
     240  :  79 : Extension_code
   241-250:80-89: Numerals
   251-254:90-93: Reserved_for_future_extensions
*/
/* The task is is to mark each beginning of a continuos roman string.
   Any ascii character other than A-Z or a-z would terminate previous beginning.
   So if some part of a roman string follows such a character 
   then it should be marked again.
   e.g. turn-table => @turn-@table */
#include <stdio.h>
#include <string.h>
#define DEBUG 0
void notIsciiMark(unsigned char input[],unsigned char output[]){
int i,j=0,k=0,l;
int found_roman_alphabet; // A flag
found_roman_alphabet = 0;
l=strlen(input);
for(i=0;i<l;i++){
	if((input[i] >= 'A' && input[i] <= 'Z') || (input[i] >= 'a' && input[i] <= 'z')){
		if(found_roman_alphabet == 0) output[j++] = '@';
		output[j++] = input[i];
		found_roman_alphabet=1;}
	else
	{
	output[j++] = input[i];
	found_roman_alphabet=0;}
}
output[j]='\0';
}

/*
 main(){
unsigned char input1[10000];
unsigned char output1[10000];
int c,i=0,j=0;
while((c=getchar())!=EOF) input1[i++]=c;
input1[i]='\0';
notIsciiMark(input1,output1);
while(output1[j]) printf("%c",output1[j++]);
printf("\n");
}
*/
